home *** CD-ROM | disk | FTP | other *** search
- class §#137§
- {
- var §#33§ = 0;
- var §#417§ = 1;
- var §#7§ = 0;
- var §#30§ = 0;
- var §#73§ = 0;
- var §#79§ = 0;
- var §#144§ = 0;
- function §#137§(depth)
- {
- this["#30"] = 0;
- this["#73"] = 0;
- this["#79"] = 0;
- _root["#166"].setColor(eval("#5")["#291"]);
- _root["#174"].setColor(eval("#5")["#291"]);
- _root["#221"].setColor(eval("#5")["#200"]);
- _root["#225"].setColor(eval("#5")["#200"]);
- _root["#128"].setColor(eval("#5")["#81"]);
- _root["#130"].setColor(eval("#5")["#81"]);
- _root["#132"].setColor(eval("#5")["#81"]);
- }
- function getScore()
- {
- return this["#30"];
- }
- function §#8§(§#97§)
- {
- if(§#97§ == this["#7"])
- {
- return undefined;
- }
- this["#7"] = §#97§;
- }
- function §#82§(§#407§)
- {
- this["#79"] = 0;
- this["#144"] = §#407§;
- _root["#166"].draw("");
- _root["#174"].draw(0);
- _root["#225"].draw(eval("#14").getDigit(this["#144"],1));
- _root["#221"].draw(eval("#14").getDigit(this["#144"],2));
- _root["#128"].draw("");
- _root["#130"].draw("");
- _root["#132"].draw(0);
- }
- function shot(§#435§)
- {
- if(§#435§)
- {
- this["#79"] = this["#79"] + 1;
- _root["#174"].draw(eval("#14").getDigit(this["#79"],1));
- _root["#166"].draw(eval("#14").getDigit(this["#79"],2));
- }
- }
- function §#236§()
- {
- return this["#79"] == this["#144"];
- }
- function update()
- {
- if(this["#30"] <= 0)
- {
- _root["#132"].draw(0);
- _root["#130"].draw("");
- _root["#128"].draw("");
- }
- else
- {
- _root["#132"].draw(eval("#14").getDigit(this["#30"],1));
- _root["#130"].draw(eval("#14").getDigit(this["#30"],2));
- _root["#128"].draw(eval("#14").getDigit(this["#30"],3));
- }
- if(this["#30"] < this["#73"])
- {
- this["#30"] += Math.ceil((this["#73"] - this["#30"]) / 4);
- if(this["#30"] > this["#73"])
- {
- this["#30"] = this["#73"];
- }
- }
- }
- function score(n, §#445§)
- {
- this["#73"] += Math.floor(n);
- this.shot(§#445§);
- }
- }
-